package com.yunji.order.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author : peter-zhu
 * @date : 2025/3/27 18:06
 * @description : TODO
 **/
@Data
public class RefundCreateDTO {
    @ApiModelProperty("订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;
    @ApiModelProperty("是否取出商品 0 未取出 1 已取出")
    @NotNull(message = "是否取出商品")
    private Integer takenOut;

    @ApiModelProperty("售后原因CODE 要这个字段是为以后查询的时候只需传CODE")
    @NotNull(message = "售后原因字典CODE不能为空")
    private String applyReasonCode;

    @ApiModelProperty("售后原因")
    @NotNull(message = "售后原因不能为空")
    private String applyReason;

    @ApiModelProperty("要退款的订单明细列表")
    @NotNull
    @Valid
    private List<RefundDetailDTO> orderDetails;
}
